import 'package:get/get.dart';

import '../modules/GoodsDetail/bindings/goods_detail_binding.dart';
import '../modules/GoodsDetail/views/goods_detail_view.dart';
import '../modules/goodList/bindings/good_list_binding.dart';
import '../modules/goodList/views/good_list_view.dart';
import '../modules/goodList/views/good_list_view.dart';
import '../modules/searchPage/bindings/search_page_binding.dart';
import '../modules/searchPage/views/search_page_view.dart';
import '../modules/tabs/bindings/tabs_binding.dart';
import '../modules/tabs/views/tabs_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const INITIAL = Routes.TABS;

  static final routes = [
    GetPage(
      name: _Paths.TABS,
      page: () => const TabsView(),
      transition: Transition.downToUp,
      binding: TabsBinding(),
    ),
    GetPage(
      name: _Paths.GOOD_LIST,
      page: () => const GoodListView(),
      binding: GoodListBinding(),
    ),
    GetPage(
      name: _Paths.SEARCH_PAGE,
      page: () => const SearchPageView(),
      transition: Transition.downToUp,
      binding: SearchPageBinding(),
    ),
    GetPage(
      name: _Paths.GOODS_DETAIL,
      page: () => const GoodsDetailView(),
      transition: Transition.rightToLeftWithFade,
      binding: GoodsDetailBinding(),
    ),
  ];
}
